home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / eulisp / comp0_89.lha / Feel / Boot / CBoot / Makefile~ < prev    next >
Text File  |  1993-07-18  |  3KB  |  90 lines

  1. # Cheapo makefile for generic boot files
  2. .SUFFIXES:
  3. .SUFFIXES: .em .sc 
  4.  
  5. #Configuration
  6. SOCKETS=t
  7. STRIPMODULES=t
  8. #where to install things
  9. FEEL_PATH=../..
  10.  
  11. FEEL_IMAGE=#-boot ../Compiler/loader
  12.  
  13. #Don't want to pick up _any_ default paths...
  14. FEEL_IMAGE=#-boot ../Compiler/compiler
  15. FEEL_ENV = \
  16.     FEEL_LOAD_PATH=..:.:../Compiler \
  17.     FEEL_INTF_PATH=.:../Interfaces  \
  18.     FEEL_START_MODULE=eulisp0    
  19.  
  20. FEELC= ../../Src/you -procs 1 -heap 7 ${FEEL_IMAGE}
  21. #FEELC=FEEL_IMAGE=loader feel80b -heap 8
  22.  
  23. #For cross-transfers
  24. #HACKPATH=add-load-path
  25. #RELOAD=!>>
  26. #for building self
  27. HACKPATH=xx-add-load-path
  28. RELOAD=!>
  29. MODMAP=../you.mods
  30.  
  31. #BOOTOBJS= boot.sc init.sc macros0.sc extras0.sc defs.sc \
  32. #      numbers.sc telos1.sc streams1.sc error0.sc standard.sc semaphores.sc standard0.sc
  33. #BOOTSRCS= boot.em init.em macros0.em extras0.em defs.em \
  34. #        numbers.em telos1.em streams1.sc error0.sc standard.em semaphores.em standard0.em
  35.  
  36. BOOTOBJS = boot.sc init.sc macros0.sc extras0.sc defs.sc gens.sc numbers.sc null.sc pair.sc \
  37.        list.sc telos1.sc streams1.sc error0.sc thread.sc lock.sc table.sc character.sc  \
  38.        vector.sc string.sc copy.sc collect.sc condition.sc eulisp0.sc standard.sc standard0.sc
  39.  
  40. BOOTSRCS = boot.em init.em macros0.em extras0.em defs.em gens.em numbers.em null.em pair.em \
  41.        list.em telos1.em streams1.em error0.em thread.em lock.em table.em character.em  \
  42.        vector.em string.em copy.em collect.em condition.em eulisp0.em standard.sc standard0.sc
  43.  
  44. TESTOBJS1 =
  45. TESTSRCS1 =
  46. TESTSRCS = ${BOOTSRCS} ${TESTSRCS1}
  47. TESTOBJS = ${BOOTOBJS} ${TESTOBJS1}
  48.  
  49. IMAGE=image.ebc image.est
  50.  
  51. image: image.ebc
  52. init: init.em
  53. test: test.ebc
  54. ncc: ncc-image.ebc
  55.  
  56. init.em: gen-init.em class-defs.em class-macs.em
  57.     echo '(!> class-macs)(set-sockets ${SOCKETS})(!> gen-init)(write-c-code)(exit)' | ${FEEL_ENV} ${FEELC} 
  58.  
  59.  
  60. image.ebc: ${BOOTOBJS}
  61.     (echo '(!> combine)(combine-mods-with-file (quote image) "${MODMAP}" (quote (' ; \
  62.     (echo ${BOOTOBJS} | sed -e 's/\.sc/ /g') ; echo ')))(exit)') | ${FEEL_ENV}  ${FEELC}
  63.     test -f image.ebc
  64.  
  65. ncc-image.ebc: ${BOOTOBJS}
  66.     (echo '(!> combine)(combine-mods-with-file (quote ncc-image) "you.mods.ncc" (quote (' ; \
  67.     (echo ${BOOTOBJS} | sed -e 's/\.sc/ /g') ; echo ')))(backtrace)(exit)') | ${FEEL_ENV} ${FEELC}
  68.     test -f ncc-image.ebc
  69.  
  70. test.ebc: ${TESTOBJS}
  71.     (echo '(!> combine)(combine-mods-with-file (quote test) "../you.mods" (quote (' ; \
  72.     (echo ${TESTOBJS} | sed -e 's/\.sc/ /g') ; echo ')))(backtrace)(exit)') | ${FEEL_ENV} ${FEELC}
  73.     test -f test.ebc
  74.  
  75. .em.sc: 
  76.     rm -f $*.sc
  77.     echo '(!> compile)(!> compile)(!> mod-hack)(${HACKPATH} "Xfer")(${RELOAD} macros0)\
  78.           (${RELOAD} defs) (!> compile) (if t (progn ((setter optimize-code) t)\
  79.       ((setter strip-module) ${STRIPMODULES})) nil)(comp2sc (quote $*))(backtrace) (exit)' | ${FEEL_ENV} ${FEELC}
  80.     test -f $*.sc
  81.  
  82. install: ${IMAGES}
  83.     cp image.ebc image.est ${FEEL_PATH}/Images
  84.         
  85.  
  86. # I don't put all the dependencies in -- just things that build fast
  87.  
  88. standard0.sc: standard.sc 
  89. standard.sc: macros0.sc extras0.sc telos1.sc defs.sc error0.sc init.sc
  90.